package org.jeecg.modules.basic.entry.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 出入管理
 * @Author: jeecg-boot
 * @Date:   2020-12-04
 * @Version: V1.0
 */
@Data
@TableName("lwgy_inout_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="lwgy_inout_record对象", description="出入管理")
public class LwgyStudentInout implements Serializable {
    private static final long serialVersionUID = 1L;

	/**ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;
	/**第三方ID*/
    @ApiModelProperty(value = "第三方ID")
    private String guestId;
    /**studentId和personId*/
    @ApiModelProperty(value = "用户Id")
    private String userId;
	/**用户名称*/
    @ApiModelProperty(value = "用户名称")
    private String userName;
    /**姓名*/
    @Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private String studentName;
    /**学号*/
    @Excel(name = "学号", width = 15)
    @ApiModelProperty(value = "学号")
    private String studentNumber;
    /**楼宇*/
    @Excel(name = "楼宇", width = 15)
    @ApiModelProperty(value = "楼宇")
    private String buildingName;
    /**单元*/
    @Excel(name = "单元", width = 15)
    @ApiModelProperty(value = "单元")
    private String unitName;
    /**楼层*/
    @Excel(name = "楼层", width = 15)
    @ApiModelProperty(value = "楼层")
    private String layerName;
    /**房间*/
    @Excel(name = "房间", width = 15)
    @ApiModelProperty(value = "房间")
    private String roomName;
    /**床位*/
    @Excel(name = "床位", width = 15)
    @ApiModelProperty(value = "床位")
    private String bedName;
	/**进出方向-从字典中取数*/
    @Excel(name = "进出方向", width = 15, dicCode = "direction")
    @Dict(dicCode = "direction")
    @ApiModelProperty(value = "进出方向")
    private String lastDirection;
    /**设备位置*/
    @Excel(name = "设备位置", width = 15)
    @ApiModelProperty(value = "设备位置")
    private String location;
	/**人员身份类型-从字典中取数*/
    @Dict(dicCode = "identity")
    @ApiModelProperty(value = "人员身份类型")
    private String type;

	/**最后进出时间*/
	@Excel(name = "最后进出时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后进出时间")
    private Date lastDirectionTime;

    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    private String stuId;
}
